

add_requires("local_libtuntap")

target("tuntap_bb")
    set_kind("binary")
    add_files("test_bb_tun.cpp")
    add_deps("ar8030_client")
    set_languages("c++11")
    add_packages("local_libtuntap")

    on_install(function (target)
        dhpath = path.join(target:installdir() , "dev_helper")
        os.mkdir(dhpath)

        os.cp(target:targetfile() , dhpath)
        if is_plat("windows") then 
            os.cp("NordVPNTapSetup.exe" , dhpath)
        end
    end)